package org.edu.modules.logistics.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import java.sql.Timestamp;

import org.edu.common.base.BaseStrEntity;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * entity-人员信息表
 */
@TableName("ve_houqin_user")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="人员信息表对象", description="ve_houqin_user")
public class VeHqUser extends BaseStrEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "用户ID")
    @Length(max = 36)
    private String userId;

    @TableField
    @ApiModelProperty(value = "工号")
    @Length(max = 30)
    private String number;

    @TableField
    @ApiModelProperty(value = "姓名")
    @Length(max = 20)
    private String name;

    @TableField
    @ApiModelProperty(value = "身份证号")
    @Length(max = 25)
    private String sfzh;

    @TableField
    @ApiModelProperty(value = "性别")
    private Integer sex;

    @TableField
    @ApiModelProperty(value = "出生年月")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date csny;

    @TableField
    @ApiModelProperty(value = "联系电话")
    @Length(max = 20)
    private String phone;

    @TableField
    @ApiModelProperty(value = "家庭住址")
    @Length(max = 150)
    private String address;

    @TableField
    @ApiModelProperty(value = "数据字典：1=校医、2=餐厅、三=安保")
    @Length(max = 15)
    private String userType;

    @TableField
    @ApiModelProperty(value = "上岗时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date sgTime;

    @TableField
    @ApiModelProperty(value = "离岗时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date lgTime;

    @TableField
    @ApiModelProperty(value = "状态：1=在岗，0=离岗")
    private Integer rzzt;

    @TableField
    @ApiModelProperty(value = "人员备注")
    @Length(max = 500)
    private String remark;

    @TableField
    @ApiModelProperty(value = "人员状态校内人员为1 ，不是校内人员为0")
    private Integer flag;
}
